Skip to content

feat: Enhance Contributor Risk Table with Live Search and Sorting Features#8262

Merged
JhaSourav07 merged 1 commit into
JhaSourav07:mainfrom
dinesh9997:feat/burnout-table-search-sort
Jul 23, 2026
Merged

feat: Enhance Contributor Risk Table with Live Search and Sorting Features#8262
JhaSourav07 merged 1 commit into
JhaSourav07:mainfrom
dinesh9997:feat/burnout-table-search-sort

Conversation

@dinesh9997

Copy link
Copy Markdown
Contributor

Description

Resolves #8217.

This PR adds dynamic search filtering, multi-column interactive header sorting, a "High Risk Only" quick filter toggle, and an empty search state to the Contributor Burnout Risk Table (/burnout-analyzer).

Key Enhancements & Features:

  1. Live Search Input: Filters contributors dynamically by username in real-time with a quick clear (X) button.
  2. "High Risk Only" Quick Filter: Toggle switch to instantly filter the table down to high-risk contributors (riskLevel === 'High'), with a badge showing the high-risk count.
  3. Interactive Column Header Sorting: Clickable headers with directional sort arrows (ArrowUpDown, ArrowUp, ArrowDown) supporting ascending/descending sorting for:
    • Contributor username (A-Z / Z-A)
    • Workload Share (%)
    • Intensity Weeks
    • Rest Weeks
    • Burnout Risk Score
  4. Empty State & Filter Reset: Friendly empty state banner when zero contributors match search/filters, complete with a "Reset Filters" action button.
  5. Contributor Counter Badge: Shows live count (Showing X of Y contributors).

Target Files Modified:

  • components/burnout/BurnoutRiskTable.tsx
  • components/burnout/BurnoutRiskTable.test.tsx

Verification & Testing

  • Unit Tests: Ran npx vitest run components/burnout/BurnoutRiskTable.test.tsx5 / 5 tests passed.
  • TypeScript Check: Ran npx tsc --noEmit0 errors.
  • Linting: Passed eslint --fix and prettier pre-commit checks cleanly.

GSSoC 2026 Contribution

Copilot AI review requested due to automatic review settings July 22, 2026 14:23
@vercel

vercel Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

@dinesh9997 is attempting to deploy a commit to the jhasourav07's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@retenta-bot

retenta-bot Bot commented Jul 22, 2026

Copy link
Copy Markdown

This pull request adds significant enhancements to the Contributor Burnout Risk Table, including live search and sorting capabilities, which will greatly improve user experience. It's worth noting that similar enhancements have been made in the past, such as the addition of export functionality to the Burnout & Sustainability Sentinel, which aimed to improve user experience by allowing structured data downloads. Additionally, ensuring error resilience in the ContributorsClient has been a focus, which aligns with maintaining stability in user interactions. Looking forward to your thoughts on this! 😊

@retenta-bot retenta-bot Bot changed the title feat: Add live search filtering and interactive column sorting to Contributor Risk Table (#8217) feat: Enhance Contributor Risk Table with Live Search and Sorting Features Jul 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📦 Next.js Bundle Size Report (Gzipped Sizes)

Asset PR Size Base Size Difference Status
static/chunks/130-[hash].js - 3.04 KB -3.04 KB (-100.00%) 🗑️ Deleted
static/chunks/1925-[hash].js 2.17 KB - +2.17 KB (++100%) 🆕 New
static/chunks/6297-[hash].js - 52.11 KB -52.11 KB (-100.00%) 🗑️ Deleted
static/chunks/7083-[hash].js 50.09 KB - +50.09 KB (++100%) 🆕 New
static/chunks/app/burnout-analyzer/page-[hash].js 12.33 KB 10.02 KB +2.31 KB (+23.04%) 🔴 Regression
static/css/[hash].css 41.16 KB 41.08 KB +0.08 KB (+0.19%) 🔴 Regression

📊 Summary of Totals

Category PR Size Base Size Difference
Total JS 3984.32 KB 3985.28 KB -0.96 KB (-0.02%)
Total CSS 332.16 KB 331.41 KB +0.75 KB (+0.23%)

@Aamod007 Aamod007 added level:beginner Small changes Usually isolated fixes or simple UI/text updates. quality:clean PR follows clean coding practices, proper formatting, documentation, and maintainability standards. type:feature New features, additions, or enhancements mentor:Aamod007 labels Jul 23, 2026

@Aamod007 Aamod007 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a great enhancement for the Contributor Risk Table! Adding live search, filtering, and sortable columns makes the dashboard much more interactive and useful for teams with many contributors. The empty state and table headers are implemented cleanly.

Everything looks good and the checks are passing!

Label Justification:

  • \level:beginner: Assigned based on 1 file changed (adding state and sorting logic to a single component).
  • \quality:clean: Excellent use of React hooks (\useMemo, \useState) to manage derived state.
  • \ ype:feature: Adds significant interactive capabilities to an existing component.
  • \mentor:Aamod007: Assigned as required.

@JhaSourav07 JhaSourav07 added the gssoc:approved PR has been reviewed and accepted for valid contribution points label Jul 23, 2026
@JhaSourav07
JhaSourav07 merged commit 264a5b6 into JhaSourav07:main Jul 23, 2026
10 of 11 checks passed
@github-actions github-actions Bot added this to the GSSoC 2026 milestone Jul 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🎉 Congratulations @dinesh9997! Your PR has been successfully merged. 🚀

Thank you for contributing to CommitPulse. Your work helps us build a better tool for the community.

⚠️ Important for GSSoC Contributors:
You are strictly advised to join our Discord Server as it is mandatory for all GSSoC participants. All important announcements, point claims, and community discussions happen there.

Keep building! 💻✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved PR has been reviewed and accepted for valid contribution points level:beginner Small changes Usually isolated fixes or simple UI/text updates. mentor:Aamod007 quality:clean PR follows clean coding practices, proper formatting, documentation, and maintainability standards. type:feature New features, additions, or enhancements

Projects

None yet

4 participants